Stops the currently-playing instance of this sound, if the engine still remembers one - a no-op if it already finished or was never playing.
sound_stop(s)| Name | Type |
|---|---|
s | sound |
Nothing.
Stops the currently-playing instance of this sound, if the engine still remembers one - a no-op if it already finished on its own or was never playing. Useful for a looping or long effect (an alarm siren, a charge-up whine) that needs to be cut short by something else happening.
sound_stop(snd_doc_beep);Stops this sound if it happens to be playing right now; harmless to call even if it is not.